<?php
/**
 * Created by Wang.
 * User: nango
 * Date: 2016-06-07
 * Time: 10:56
 */

namespace App\Home\Controller;

class Index extends Home
{
    public function index(){
        $productMod = MT('product');
        $result = $productMod->getProduct();
        /*$sql = "select title from xyh_product WHERE id =?";
        $where = 1;
        $result = $productMod->stmtGet($sql, $where);*/
        print_r($result);
        $this->assign('title','Wang');
        $this->assign('name','this is nango!   :)');
        $this->display();
    }
}